<?php

namespace app\common\model;

use think\Db;
use think\Model;


class MemberGroupsChat extends Model
{
    protected $insert = ['status' => 1, 'create_time', 'update_time'];
    protected $update = ['update_time'];

    /**
     * 设置添加时间
     * @return int
     */
    protected function setCreateTimeAttr()
    {
        return time();
    }

    /**
     * 设置更新时间
     * @return int
     */
    protected function setUpdateTimeAttr()
    {
        return time();
    }
}
